package com.lcifn.middleware.rpc.server.handler;

import com.lcifn.middleware.rpc.transport.command.Command;

/**
 * 请求handler
 * @author lichao
 * @date 2021/2/1 16:58
 */
public interface RequestHandler {

    /**
     * 处理RPC请求
     * @param reqCommand
     * @return
     */
    Command handle(Command reqCommand);

    /**
     * handler类型
     * @return
     */
    int type();
}
